package com.example.myapplication9;

import android.content.Context;
import android.database.sqlite.SQLiteDatabase;
import android.database.sqlite.SQLiteOpenHelper;

public class MyDBHelper extends SQLiteOpenHelper {
    private String name="";
    public MyDBHelper(Context context,String name)
    {
        super(context,name,null,1);
        this.name=name;
    }

    @Override
    public void onCreate(SQLiteDatabase db) {
        String sql="create table if not exists question(id char(10) primary key,title char(200),A char(100),B char(100),C char(100),D char(100))";
        db.execSQL(sql);
    }

    @Override
    public void onUpgrade(SQLiteDatabase db, int oldVersion, int newVersion) {
    }
}